package enum02;
/*
* 一周(星期一 -- 星期天)
* 1.我们为一周每天定义一个week()对象，每个week对象都代表改天
* */
public class Week {

    private Week(){ };

    private String weekName;// 代表星期的名称

    private  Week(String weekName){
        this.weekName = weekName;
    }

    public static final Week MONDAY = new Week("星期一");
    public static final Week TUESDAY= new Week("星期二");
    public static final Week WEDNESDAY = new Week("星期三");
    public static final Week THURSDAY = new Week("星期四");
    public static final Week FRIDAY = new Week("星期五");
    public static final Week SATURDAY = new Week("星期六");
    public static final Week SUNDAY = new Week("星期天");

    @Override
    public String toString() {
        return weekName;
    }
}
